package com.example.orderminiappapi.service.Impl;

import com.example.orderminiappapi.bean.*;
import com.example.orderminiappapi.dao.CommentAndTagDao;
import com.example.orderminiappapi.dao.SearchDao;
import com.example.orderminiappapi.service.CommentAndTagService;
import com.example.orderminiappapi.service.SearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentAndTagServiceImpl implements CommentAndTagService {

    @Autowired
    private CommentAndTagDao commentAndTagDao;


    @Override
    public List<Comment> getOneShopComment(Shop shop) {
        return commentAndTagDao.getOneShopComment(shop);
    }

    @Override
    public List<ShopTag> getOneShopTag(Shop shop) {
        return commentAndTagDao.getOneShopTag(shop);
    }
}
